import http from "@/api";
import { ResPage } from "@/api/interface/index";
import { Applet, Forward } from "@/api/interface/iot";

export const getAppletList = (params: Applet.ReqApplet) => {
	return http.get<ResPage<Forward.ResRule[]>>(`/app/find`, params);
};
export const addApplet = (params: Applet.ResApplet) => {
	return http.post(`/service/app/add`, params);
};
export const delApplet = (params: Applet.ResApplet) => {
	return http.post(`/service/app/remove`, params);
};
export const modApplet = (params: Applet.ResApplet) => {
	return http.post(`/service/app/modify`, params);
};
